import { axios } from '@/utils/request'

export function selectPage(parameter) {
  return axios({
    url: '/coupon/newGift/selectPage/' + parameter.pageNum + '/' + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function addOrUpdate(parameter) {
  return axios({
    url: '/coupon/newGift/addOrUpdate',
    method: 'post',
    data: parameter
  })
}


export function selectDetailIdsByBigWheelId(parameter) {
  return axios({
    url: '/pc/bigWheel/selectDetailIdsByBigWheelId/'+parameter,
    method: 'get'
  })
}

export function selectBigWheelDetailByBigWheelId(parameter) {
  return axios({
    url: '/pc/bigWheel/selectBigWheelDetailByBigWheelId/'+parameter,
    method: 'get'
  })
}
export function selectNewGiftByCompanyId(parameter) {
  return axios({
    url: '/coupon/newGift/selectNewGiftByCompanyId/'+parameter,
    method: 'get'
  })
}
export function saveBigWheelConfig(parameter) {
  return axios({
    url: '/pc/bigWheel/saveBigWheelConfig',
    method: 'post',
    data: parameter
  })
}


export function del(parameter) {
  return axios({
    url: '/coupon/newGift/delete/' + parameter,
    method: 'get'
  })
}

export function selectAll(parameter) {
  return axios({
    url: '/pc/bigWheel/selectAll',
    method: 'post',
    data: parameter
  })
}



export function upActivity(parameter) {
  return axios({
    url: '/coupon/newGift/upActivity',
    method: 'post',
    data: parameter
  })
}